<template>
  <div id="item">
    <img width="100%" :src="data.imgUrl" alt="" />
    <div class="call">
      <h3>{{ data.text }}</h3>

      <div class="price">
        <b>￥{{ data.price }}</b>
        起
      </div>
      <span class="name">店铺：{{ data.name }}</span>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  props: ["data"],
};
</script>
<style lang="scss" scoped>
#item {
  width: 266px;
  position: relative;
  margin: 0 8px;
    img{padding: 0;border: none;}
  .call {
      border: 1px solid #f1f1f1;
      border-top: none;
      height: 80px;
    h3 {
      height: 40px;
      position: absolute;
      right: 0;
      left: 0;
      bottom: 39px;
      font-size: 14px;
      overflow: hidden;
      transition: height 0.2s;
      padding-top: 5px;
      padding-left: 5px;
      padding-right: 5px;
    }
    .price {
      position: absolute;
      bottom: 0;
      left: 0;
      color: #ff8a00;
      padding: 10px;
      b {
        font-size: 20px;
      }
    }
    .name {
      position: absolute;
      right: 0;
      bottom: 0;
      font-size: 12px;
      padding: 10px;
    }
  }
  &:hover {
    background-color: #f9f9f9;
    .call{
        background-color: #f9f9f9;
    }
    h3 {
      height: 80px;
      background-color: #f9f9f8;
    }
  }
}
</style>